﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JzSport.Model.Strategies
{
    /// <summary>
    /// 密码安全保护策略
    /// </summary>
    public interface ICryptoSecurityStrategy
    {
        /// <summary>
        /// 错误密码
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="account"></param>
        LockResult IncorrectPassword(JzSportDbContext dbContext, Account account);

        /// <summary>
        /// 密码正确
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="account"></param>
        /// <returns></returns>
        LockResult CorrectPassword(JzSportDbContext dbContext, Account account);
    }
}
